package cn.wolfcode.luowowo.service;


import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.query.StrategyQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyService {
    Strategy get(String id);
    List<Strategy> list();

    void save(Strategy strategy);
    void update(Strategy strategy);
    void delete(String id);

    /**
     * 查询
     * @param qo
     * @return
     */
    Page<Strategy> query(StrategyQuery qo);

    /**
     * 保存和更新
     * @param strategy
     */
    void saveOrUpdate(Strategy strategy);

}
